package com.cookor.poi.modules.phy.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.phy.dao.TRankDao;
import com.cookor.poi.modules.phy.entity.TRank;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TRankService extends CrudService<TRankDao, TRank> {
  public TRank get(String id) {
    return (TRank)super.get(id);
  }
  
  public List<TRank> findList(TRank tRank) {
    return super.findList( tRank);
  }
  
  public Page<TRank> findPage(Page<TRank> page, TRank tRank) {
    return super.findPage(page,  tRank);
  }
  
  @Transactional(readOnly = false)
  public void save(TRank tRank) {
    super.save( tRank);
  }
  
  @Transactional(readOnly = false)
  public void delete(TRank tRank) {
    super.delete( tRank);
  }
}
